import request from '@/utils/request'

// 新增赔付申请
export function claimRecordAdd(data) {
  return request({
    url: '/claimRecord',
    method: 'post',
    data
  })
}

// 卖家处理赔付申请
export function claimRecordChangeSeller(data) {
  return request({
    url: '/claimRecord/pfchange',
    method: 'post',
    data
  })
}

// 申请客服介入
export function claimRecordsqkf(data) {
  return request({
    url: '/claimRecord/sqkf',
    method: 'post',
    data
  })
}

// 客服处理赔付
export function claimRecordkfchange(data) {
  return request({
    url: '/claimRecord/kfchange',
    method: 'post',
    data
  })
}

// 查询赔付详情
export function getDetailclaimRecord(id) {
  return request({
    url: `/claimRecord/${id}`,
    method: 'get'
  })
}

// 获取赔付列表
export function getclaimRecordList(params) {
  return request({
    url: `/claimRecord/list`,
    method: 'get',
    params
  })
}

// 根据群id获取togroup
export function groupGetById(params) {
  return request({
    url: `/group/info/getById`,
    method: 'get',
    params
  })
}